/*
 * Copyright 2008 the original author Ang Gao.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * IRServiceImpl.java 2008-11-25
 */
package ie.ucc.cs.anggao.finalproject.server.service;

import ie.ucc.cs.anggao.finalproject.client.model.Query;
import ie.ucc.cs.anggao.finalproject.client.model.QueryEssay;
import ie.ucc.cs.anggao.finalproject.client.service.IRService;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * @author GaoAng
 *
 */
public class IRServiceImpl extends RemoteServiceServlet implements IRService{


	public Query getSEquery(QueryEssay query) {
		
		String q = query.getContent();
		Query newq = new Query("Ireland "+q);
		System.out.println(newq.getQuery());
		return newq;
		
	}

	
	
/*	
 * public List<SearchEngineResult> getSEresult(QueryEssay query) {
		
		System.out.print("HAHHA");
		 List<SearchEngineResult> tasks = new ArrayList<SearchEngineResult>();
	        for(long i=0;i<10;i++) {
	        	SearchEngineResult task1 = new SearchEngineResult("Task #" + i, "http://www.uc.edu/", "A simple task with a simple description.");
	            tasks.add(task1);
	        }
	        return tasks;
	}
	
	*/
	
	

}

